import request from "@/utils/request.js";

const api_prefix = "/pay/info";

export function getOrderIds(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/order/${userId}`,
    method: "GET",
  });
}

export function getOrderCreateTime(orderId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/order/create/${orderId}`,
    method: "GET",
  });
}

export function getHavePayOrderData(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/have/order/${userId}`,
    method: "GET",
  });
}
